package com.wx.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.core.env.Environment;

/**
 * @Description TODO
 * @Author lijing1@wxchina.com
 * @Date 2020/6/15 16:01
 **/
@EnableDiscoveryClient
@SpringBootApplication
public class WebSpringBootApplication  implements CommandLineRunner {


    @Autowired
    private Environment environment;

    public static void main(String[] args) {
        SpringApplication.run(WebSpringBootApplication.class,args);
    }

    @Override
    public void run(String... strings) throws Exception {
        System.out.println(environment);
    }
}
